package car.aistar.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * (Carowner)实体类
 *
 * @author makejava
 * @since 2020-09-30 20:20:57
 */
public class Carowner implements Serializable {
    private static final long serialVersionUID = 562629551397230898L;
    /**
     * 车主id
     */
    private Long id;
    /**
     * 车主姓名
     */
    private String oname;
    /**
     * 车主电话
     */
    private String ophone;
    /**
     * 车主身份证
     */
    @JsonProperty(value = "oIdcard")
    private String oIdcard;
    /**
     * 车主银行卡号
     */
    private String obank;
    /**
     * 车主创建时间
     */
    private Date ocreateDate;
    /**
     * 车辆id
     */
    @JsonProperty(value = "cId")
    private Integer cId;
    /**
     * 底价
     */
    private Double oprice;

    public Carowner() {
    }

    public Carowner(Long id, String oname, String ophone, String oIdcard, String obank, Date ocreateDate, Integer cId, Double oprice) {
        this.id = id;
        this.oname = oname;
        this.ophone = ophone;
        this.oIdcard = oIdcard;
        this.obank = obank;
        this.ocreateDate = ocreateDate;
        this.cId = cId;
        this.oprice = oprice;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOname() {
        return oname;
    }

    public void setOname(String oname) {
        this.oname = oname;
    }

    public String getOphone() {
        return ophone;
    }

    public void setOphone(String ophone) {
        this.ophone = ophone;
    }

    public String getOIdcard() {
        return oIdcard;
    }

    public void setOIdcard(String oIdcard) {
        this.oIdcard = oIdcard;
    }

    public String getObank() {
        return obank;
    }

    public void setObank(String obank) {
        this.obank = obank;
    }

    public Date getOcreateDate() {
        return ocreateDate;
    }

    public void setOcreateDate(Date ocreateDate) {
        this.ocreateDate = ocreateDate;
    }

    public Integer getCId() {
        return cId;
    }

    public void setCId(Integer cId) {
        this.cId = cId;
    }

    public Double getOprice() {
        return oprice;
    }

    public void setOprice(Double oprice) {
        this.oprice = oprice;
    }

    @Override
    public String toString (){
        final StringBuilder sb = new StringBuilder("Carowner{");
        sb.append("id=").append(id);
        sb.append(", oname='").append(oname).append('\'');
        sb.append(", ophone='").append(ophone).append('\'');
        sb.append(", oIdcard='").append(oIdcard).append('\'');
        sb.append(", obank='").append(obank).append('\'');
        sb.append(", ocreateDate=").append(ocreateDate);
        sb.append(", cId=").append(cId);
        sb.append(", oprice=").append(oprice);
        sb.append('}');
        return sb.toString();
    }
}